# coding=utf-8

#python
import os
import random

#appengine
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext.webapp import template

#lib
from const import *

#handlers
class CreateHandler(webapp.RequestHandler):
    def get(self):

        #display error or warnings
        template_values = {
                'nome':'valor',
        }
        path = os.path.join(os.path.dirname(__file__), '../templates/create.htm')
        self.response.out.write(template.render(path, template_values))


application = webapp.WSGIApplication(
                                     [('.*', CreateHandler)],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
